/*
 * Licensed to the Apache Software Foundation (ASF) under one
 * or more contributor license agreements.  See the NOTICE file
 * distributed with this work for additional information
 * regarding copyright ownership.  The ASF licenses this file
 * to you under the Apache License, Version 2.0 (the
 * "License"); you may not use this file except in compliance
 * with the License.  You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing,
 * software distributed under the License is distributed on an
 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 * KIND, either express or implied.  See the License for the
 * specific language governing permissions and limitations
 * under the License.
 */

/**
 * @Title: UrlInfo.java
 * @Package phoenics.apeak.simple.entity
 * @Description
 * @author phoenics@126com
 * @date 2016-1-30 16:01:32
 * @version V1.0
 */
package phoenics.apeak.simple.entity;

import org.springframework.data.mongodb.core.index.Indexed;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;
// TODO: Auto-generated Javadoc

/**
 * The Class UrlInfo.
 *
 * @Description The Class UrlInfo.
 */
@Document(collection="urlInfo")
public class UrlInfo {
	/*
	 "id": "rolling-luggage",
   "limit": NumberInt(500),
   "offset": NumberInt(4150),
   "total": NumberInt(4135),
   "over": NumberInt(1) 
	 */
	
	/** The id. */
	@Field("id")
	@Indexed(unique = true)
	private String id;
	
	/**
 * Gets the id.
 *
 * @return the id
 */
	public String getId() {
		return id;
	}
	
	/**
 * Sets the id.
 *
 * @param id
 *            the new id
 */
	public void setId(String id) {
		this.id = id;
	}
	
	/**
 * Gets the limit.
 *
 * @return the limit
 */
	public int getLimit() {
		return limit;
	}
	
	/**
 * Sets the limit.
 *
 * @param limit
 *            the new limit
 */
	public void setLimit(int limit) {
		this.limit = limit;
	}
	
	/**
 * Gets the total.
 *
 * @return the total
 */
	public int getTotal() {
		return total;
	}
	
	/**
 * Sets the total.
 *
 * @param total
 *            the new total
 */
	public void setTotal(int total) {
		this.total = total;
	}
	
	/**
 * Gets the over.
 *
 * @return the over
 */
	public int getOver() {
		return over;
	}
	
	/**
 * Sets the over.
 *
 * @param over
 *            the new over
 */
	public void setOver(int over) {
		this.over = over;
	}
	
	/**
 * Gets the offset.
 *
 * @return the offset
 */
	public int getOffset() {
		return offset;
	}
	
	/**
 * Sets the offset.
 *
 * @param offset
 *            the new offset
 */
	public void setOffset(int offset) {
		this.offset = offset;
	}
	
	/**
 * Gets the timeout.
 *
 * @return the timeout
 */
	public int getTimeout() {
		return timeout;
	}
	
	/**
 * Sets the timeout.
 *
 * @param timeout
 *            the new timeout
 */
	public void setTimeout(int timeout) {
		this.timeout = timeout;
	}
	
	/** The limit. */
	private int limit;
	
	/** The total. */
	private int total;
	
	/** The over. */
	private int over;
	
	/** The offset. */
	private int offset;
	
	/** The timeout. */
	private int timeout=0;

}
